<%@page import="beans.Curso"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
 <%@ taglib uri="http://displaytag.sf.net/el" prefix="tb"%>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
<script type="text/javascript">
	document.getElementById("tbpcur").onclick = function(e) {
	if (!e)
		e = window.event;
	if (!e.target)
		e.target = e.srcElement;
	var TR = e.target;
	while (TR.nodeType == 1 && TR.tagName.toUpperCase() != "TR")
		TR = TR.parentNode;
	var celdas = TR.getElementsByTagName("TD");
	if (celdas.length != 0)
	document.getElementById('codcuroculto').value =celdas[0].innerHTML;
	cargarDetallePrograma();
	}
	
	function mostrarDetallepro(){
		$( "#tabs" ).tabs( "enable",2);
	}
	
	
</script>
</head>
<body>

	<tb:table id="tbpcur" name='<%=session.getAttribute("ListaCursos") %>'>
		<tb:column property="codigo" title="Codigo"/>
		<tb:column property="nombre" title="Nombre de Curso"/>
		<tb:column title="Acciones">
			<input type="button" value="Mostrar Detalle" id="btndetalleprograma" onclick="mostrarDetallepro();"/>
			<input type="button" value="Eliminar" id="btnborrarcursoprograma" onclick="eliminarCursoPrograma();"/>
		</tb:column>
	</tb:table>
</body>
</html>